<?php
if (!(defined('IN_IA'))) 
{
	exit('Access Denied');
}

//服务类支付
class Index_MxShopPage extends MobilePage {

    //订单支付
	public function main() {
		global $_W, $_GPC;

        //获取令牌
        $token = $this->getToken();

        include $this->template();
	}

    //获取支付类型接口
    public function type() {
        global $_W, $_GPC;

        //验证令牌
        if(empty($_GPC['token']) || !$this->checkToken($_GPC['token'])){
            show_json(0, '参数有误');
        }

        show_json(1, array('code'=>'666'));
    }

    //支付成功页面
    public function succeed() {
        global $_W, $_GPC;

        //获取令牌
        $token = $this->getToken();

        include $this->template();
    }

    //订单完成接口
    public function finish() {
        global $_W, $_GPC;

        //验证令牌
        if(empty($_GPC['token']) || !$this->checkToken($_GPC['token'])){
            show_json(0, '参数有误');
        }

        show_json(1, array('code'=>'666'));
    }

}
